package com.telecom.restaurant.dao;

import com.telecom.restaurant.model.CouponCustomerPO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CouponCustomerDao {
    int deleteByPrimaryKey(Long id);

    int insert(CouponCustomerPO record);

    CouponCustomerPO selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(CouponCustomerPO record);

    int addCouponBatch(@Param("coupons")List<CouponCustomerPO> couponList);

    CouponCustomerPO searchByMobile(@Param("mobile")String mobile);

    List<String> getAllMobiles(@Param("offset")Integer offset, @Param("limit")Integer limit,
                               @Param("status")Integer status);
}